/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package iandtic.paydnie.dnie;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author sergio
 */
public class DNIe implements Serializable{
    
    int pin;
    String nif=null;
    List accounts= new ArrayList<String>();
    
    public DNIe(String nif, int pin){
        this.setNIF(nif);
        this.setPIN(pin);
    }
    
    public DNIe(){
    
    }

    public String getNIF() {
        return nif;
    }

    public void setNIF(String nif) {
        this.nif = nif;
    }

    public int getPIN() {
        return pin;
    }

    public void setPIN(int pin) {
        this.pin = pin;
    }
    
    public boolean addAccount(String account){
        return accounts.add(account);
    }

    public List getAccounts(){
        return accounts;
    }
      
}